var navigationRule = {};

function init() {
	_initHeader();
	
	var array = new Array();
	
	array.push("LoadingImage (Auto)");
	array.push("LoadingImage (Non-Auto)");
	array.push("dismissLoadImage");
	
	draw_list(array);
}

function setOnListClickHandler(idx) {
	switch(idx) {
		case 0 :
			testLoadingImage_auto();
			
		break;
		
		case 1 :
			testLoadingImage_nonAuto();
			
		break;
		
		case 2 :
			testDismissLoadImage();
			
		break;
		
		default :

		break;
	}
}

function testLoadingImage_auto() {
	navigationRule = {
		"pageId" : "alopexController_loadingImage_auto",
		"loadImage" : "/css/app/images/NEXCORE.png",
		"autoDismiss" : true
	};

	alopexController.navigate(navigationRule);
}

function testLoadingImage_nonAuto() {
	navigationRule = {
		"pageId" : "alopexController_loadingImage_nonAuto",
		"loadImage" : "/css/app/images/NEXCORE.png",
		"autoDismiss" : false
	};

	alopexController.navigate(navigationRule);
}

function testDismissLoadImage() {
	navigationRule = {
		"pageId" : "alopexController_dismissLoadImage",
		"loadImage" : "/css/app/images/NEXCORE.png",
		"autoDismiss" : false
	};

	alopexController.navigate(navigationRule);
}